.effeckt-button {
  position: relative; }

.effeckt-button .spinner {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 50%;
  margin-top: -16px;
  margin-left: -16px;
  opacity: 0;
  background-image: url();
  background-size: 32px auto; }

.effeckt-button, .effeckt-button .spinner, .effeckt-button .label {
  transition: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275) all; }

.effeckt-button[data-effeckt-type="expand-right"] .spinner {
  right: 16px; }

.effeckt-button[data-effeckt-type="expand-right"][data-loading] {
  padding-right: 64px; }

.effeckt-button[data-effeckt-type="expand-right"][data-loading] .spinner {
  opacity: 1; }

.effeckt-button[data-effeckt-type="expand-left"] .spinner {
  left: 16px;
  margin-left: 0; }

.effeckt-button[data-effeckt-type="expand-left"][data-loading] {
  padding-left: 64px; }

.effeckt-button[data-effeckt-type="expand-left"][data-loading] .spinner {
  opacity: 1; }

.effeckt-button[data-effeckt-type="expand-up"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="expand-up"] .spinner {
  top: 32px;
  left: 50%; }

.effeckt-button[data-effeckt-type="expand-up"][data-loading] {
  padding-top: 64px; }

.effeckt-button[data-effeckt-type="expand-up"][data-loading] .spinner {
  opacity: 1;
  top: 16px;
  margin-top: 0; }

.effeckt-button[data-effeckt-type="expand-down"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="expand-down"] .spinner {
  left: 50%;
  top: 100%;
  margin-top: -48px; }

.effeckt-button[data-effeckt-type="expand-down"][data-loading] {
  padding-bottom: 64px; }

.effeckt-button[data-effeckt-type="expand-down"][data-loading] .spinner {
  opacity: 1; }

.effeckt-button[data-effeckt-type="slide-left"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="slide-left"] .label {
  position: relative; }

.effeckt-button[data-effeckt-type="slide-left"] .spinner {
  left: 100%; }

.effeckt-button[data-effeckt-type="slide-left"][data-loading] .label {
  opacity: 0;
  left: -100%; }

.effeckt-button[data-effeckt-type="slide-left"][data-loading] .spinner {
  opacity: 1;
  left: 50%; }

.effeckt-button[data-effeckt-type="slide-right"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="slide-right"] .label {
  position: relative; }

.effeckt-button[data-effeckt-type="slide-right"] .spinner {
  left: 0%; }

.effeckt-button[data-effeckt-type="slide-right"][data-loading] .label {
  opacity: 0;
  left: 100%; }

.effeckt-button[data-effeckt-type="slide-right"][data-loading] .spinner {
  opacity: 1;
  left: 50%; }

.effeckt-button[data-effeckt-type="slide-up"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="slide-up"] .label {
  position: relative; }

.effeckt-button[data-effeckt-type="slide-up"] .spinner {
  left: 50%;
  top: 100%; }

.effeckt-button[data-effeckt-type="slide-up"][data-loading] .label {
  opacity: 0;
  top: -1em; }

.effeckt-button[data-effeckt-type="slide-up"][data-loading] .spinner {
  opacity: 1;
  top: 50%; }

.effeckt-button[data-effeckt-type="slide-down"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="slide-down"] .label {
  position: relative; }

.effeckt-button[data-effeckt-type="slide-down"] .spinner {
  left: 50%;
  top: 0%; }

.effeckt-button[data-effeckt-type="slide-down"][data-loading] .label {
  opacity: 0;
  top: 1em; }

.effeckt-button[data-effeckt-type="slide-down"][data-loading] .spinner {
  opacity: 1;
  top: 50%; }

.effeckt-button[data-effeckt-type="zoom-in"], .effeckt-button[data-effeckt-type="zoom-in"] .spinner, .effeckt-button[data-effeckt-type="zoom-in"] .label, .effeckt-button[data-effeckt-type="zoom-out"], .effeckt-button[data-effeckt-type="zoom-out"] .spinner, .effeckt-button[data-effeckt-type="zoom-out"] .label {
  transition: 500ms ease all; }

.effeckt-button[data-effeckt-type="zoom-out"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="zoom-out"] .spinner {
  left: 50%;
  -webkit-transform: scale(2.5);
      -ms-transform: scale(2.5);
          transform: scale(2.5); }

.effeckt-button[data-effeckt-type="zoom-out"] .label {
  position: relative;
  display: inline-block; }

.effeckt-button[data-effeckt-type="zoom-out"][data-loading] .label {
  opacity: 0;
  -webkit-transform: scale(0.5);
      -ms-transform: scale(0.5);
          transform: scale(0.5); }

.effeckt-button[data-effeckt-type="zoom-out"][data-loading] .spinner {
  opacity: 1;
  -webkit-transform: none;
      -ms-transform: none;
          transform: none; }

.effeckt-button[data-effeckt-type="zoom-in"] {
  overflow: hidden; }

.effeckt-button[data-effeckt-type="zoom-in"] .spinner {
  left: 50%;
  -webkit-transform: scale(0.2);
      -ms-transform: scale(0.2);
          transform: scale(0.2); }

.effeckt-button[data-effeckt-type="zoom-in"] .label {
  position: relative;
  display: inline-block; }

.effeckt-button[data-effeckt-type="zoom-in"][data-loading] .label {
  opacity: 0;
  -webkit-transform: scale(2.2);
      -ms-transform: scale(2.2);
          transform: scale(2.2); }

.effeckt-button[data-effeckt-type="zoom-in"][data-loading] .spinner {
  opacity: 1;
  -webkit-transform: none;
      -ms-transform: none;
          transform: none; }

/*==========================
FILL
==========================*/
.effeckt-button[data-effeckt-type="fill-from-left"] {
  overflow: hidden;
  position: relative; }
  .effeckt-button[data-effeckt-type="fill-from-left"]:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #000;
    -webkit-transform: translate(-100%, 0);
        -ms-transform: translate(-100%, 0);
            transform: translate(-100%, 0);
    transition: -webkit-transform 500ms;
    transition: transform 500ms; }
  .effeckt-button[data-effeckt-type="fill-from-left"][data-loading]:after {
    -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
            transform: translate(0, 0); }
  .effeckt-button[data-effeckt-type="fill-from-left"] .effeckt-button-label {
    position: relative;
    z-index: 1; }

.effeckt-button[data-effeckt-type="fill-from-right"] {
  overflow: hidden;
  position: relative; }
  .effeckt-button[data-effeckt-type="fill-from-right"]:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #000;
    -webkit-transform: translate(100%, 0);
        -ms-transform: translate(100%, 0);
            transform: translate(100%, 0);
    transition: -webkit-transform 500ms;
    transition: transform 500ms; }
  .effeckt-button[data-effeckt-type="fill-from-right"][data-loading]:after {
    -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
            transform: translate(0, 0); }
  .effeckt-button[data-effeckt-type="fill-from-right"] .effeckt-button-label {
    position: relative;
    z-index: 1; }

.effeckt-button[data-effeckt-type="fill-from-top"] {
  overflow: hidden;
  position: relative; }
  .effeckt-button[data-effeckt-type="fill-from-top"]:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #000;
    -webkit-transform: translate(0, -100%);
        -ms-transform: translate(0, -100%);
            transform: translate(0, -100%);
    transition: -webkit-transform 500ms;
    transition: transform 500ms; }
  .effeckt-button[data-effeckt-type="fill-from-top"][data-loading]:after {
    -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
            transform: translate(0, 0); }
  .effeckt-button[data-effeckt-type="fill-from-top"] .effeckt-button-label {
    position: relative;
    z-index: 1; }

.effeckt-button[data-effeckt-type="fill-from-bottom"] {
  overflow: hidden;
  position: relative; }
  .effeckt-button[data-effeckt-type="fill-from-bottom"]:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #000;
    -webkit-transform: translate(0, 100%);
        -ms-transform: translate(0, 100%);
            transform: translate(0, 100%);
    transition: -webkit-transform 500ms;
    transition: transform 500ms; }
  .effeckt-button[data-effeckt-type="fill-from-bottom"][data-loading]:after {
    -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
            transform: translate(0, 0); }
  .effeckt-button[data-effeckt-type="fill-from-bottom"] .effeckt-button-label {
    position: relative;
    z-index: 1; }

/*==========================
ICON SLIDE

Example markup:
<button class="effeckt-button" data-effeckt-type="icon-slide from-top">
  <span class="effeckt-button-label demo-button-icon">Icon from top</span>
</button>
==========================*/
.demo-button-icon:before {
  background: url() no-repeat center center;
  background-size: 30px; }

.effeckt-button[data-effeckt-type~="icon-slide"] {
  overflow: hidden;
  padding: 0; }
  .effeckt-button[data-effeckt-type~="icon-slide"] .effeckt-button-label {
    padding: 0.8rem 1rem;
    display: block;
    position: relative;
    transition: -webkit-transform 500ms;
    transition: transform 500ms; }
    .effeckt-button[data-effeckt-type~="icon-slide"] .effeckt-button-label:before {
      content: '';
      display: block;
      position: absolute;
      width: 100%;
      height: 100%; }

.effeckt-button[data-effeckt-type~="icon-slide"][data-effeckt-type~="from-top"] .effeckt-button-label:before {
  top: -100%;
  left: 0;
  right: 0; }
.effeckt-button[data-effeckt-type~="icon-slide"][data-effeckt-type~="from-bottom"] .effeckt-button-label:before {
  bottom: -100%;
  left: 0;
  right: 0; }
.effeckt-button[data-effeckt-type~="icon-slide"][data-effeckt-type~="from-left"] .effeckt-button-label:before {
  left: -100%;
  top: 0;
  bottom: 0; }
.effeckt-button[data-effeckt-type~="icon-slide"][data-effeckt-type~="from-right"] .effeckt-button-label:before {
  right: -100%;
  top: 0;
  bottom: 0; }

.effeckt-button[data-effeckt-type~="icon-slide"][data-loading][data-effeckt-type~="from-top"] .effeckt-button-label {
  -webkit-transform: translateY(100%);
      -ms-transform: translateY(100%);
          transform: translateY(100%); }
.effeckt-button[data-effeckt-type~="icon-slide"][data-loading][data-effeckt-type~="from-bottom"] .effeckt-button-label {
  -webkit-transform: translateY(-100%);
      -ms-transform: translateY(-100%);
          transform: translateY(-100%); }
.effeckt-button[data-effeckt-type~="icon-slide"][data-loading][data-effeckt-type~="from-left"] .effeckt-button-label {
  -webkit-transform: translateX(100%);
      -ms-transform: translateX(100%);
          transform: translateX(100%); }
.effeckt-button[data-effeckt-type~="icon-slide"][data-loading][data-effeckt-type~="from-right"] .effeckt-button-label {
  -webkit-transform: translateX(-100%);
      -ms-transform: translateX(-100%);
          transform: translateX(-100%); }

.effeckt-button[data-effeckt-type="3d-rotate-success"], .effeckt-button[data-effeckt-type="3d-rotate-error"] {
  transition: all 500ms;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden; }

.effeckt-button[data-effeckt-type="3d-rotate-error"]:before, .effeckt-button[data-effeckt-type="3d-rotate-success"]:after {
  white-space: nowrap;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  line-height: 2em; }

.effeckt-button[data-effeckt-type="3d-rotate-error"]:before {
  top: 100%;
  content: attr(data-effeckt-message);
  -webkit-transform-origin: 0% 0%;
      -ms-transform-origin: 0% 0%;
          transform-origin: 0% 0%;
  -webkit-transform: rotateX(-90deg);
          transform: rotateX(-90deg);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden; }

.effeckt-button[data-effeckt-type="3d-rotate-error"][data-loading] {
  -webkit-transform-origin: 50% 0%;
      -ms-transform-origin: 50% 0%;
          transform-origin: 50% 0%;
  -webkit-transform: rotateX(90deg) translateY(-100%);
          transform: rotateX(90deg) translateY(-100%); }

.effeckt-button[data-effeckt-type="3d-rotate-success"]:after {
  top: -100%;
  content: attr(data-effeckt-message);
  -webkit-transform-origin: 0% 100%;
      -ms-transform-origin: 0% 100%;
          transform-origin: 0% 100%;
  -webkit-transform: rotateX(90deg);
          transform: rotateX(90deg);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden; }

.effeckt-button[data-effeckt-type="3d-rotate-success"][data-loading] {
  -webkit-transform-origin: 50% 100%;
      -ms-transform-origin: 50% 100%;
          transform-origin: 50% 100%;
  -webkit-transform: rotateX(-90deg) translateY(100%);
          transform: rotateX(-90deg) translateY(100%); }
